package com.elitesland.b2c.tms.entity;

import com.elitesland.core.base.BaseModel;
import com.elitesland.system.annotation.Comment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * .
 *
 * @author fred
 * @date 2021-02-03
 */
@Entity
@Table(name = "tms_fare_tmpl_area",
        indexes = {
                @Index(name = "idx_tms_fare_tmpl_area_tmpl_id", columnList = "tms_fare_tmpl_id")
        })
@org.hibernate.annotations.Table(appliesTo = "tms_fare_tmpl_area", comment = "运费模板设置地区")
@Data
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
public class TmsFareTmplAreaDO extends BaseModel implements Serializable {

    private static final long serialVersionUID = 2072354939989166344L;

    @Comment("运费模板ID")
    @Column(name = "tms_fare_tmpl_id", columnDefinition = "bigint(20)", nullable = false)
    private Long tmsFareTmplId;

    @Comment("省份ID")
    @Column(name = "com_area_province_id", columnDefinition = "bigint(20)")
    private Long comAreaProvinceId;

    @Comment("市ID")
    @Column(name = "com_area_city_id", columnDefinition = "bigint(20)")
    private Long comAreaCityId;

    @Comment("县（区）ID")
    @Column(name = "com_area_county_id", columnDefinition = "bigint(20)")
    private Long comAreaCountyId;

    @Comment("镇（街道）ID")
    @Column(name = "com_area_street_id", columnDefinition = "bigint(20)")
    private Long comAreaStreetId;

}
